package com.yunxin.customui.service.paramhandlerimpl;

import cn.hutool.core.date.DateUtil;
import com.yunxin.customui.myinterface.IParamHandler;
import com.yunxin.customui.bean.table.CustomFormValueBean;
import org.springframework.stereotype.Service;

/**
 * 结束时间增加一天
 *
 * @author LGY
 * @date 2021/09/24
 */
@Service
public class EndTimeAddOneDay implements IParamHandler {

    @Override
    public CustomFormValueBean handle(CustomFormValueBean customFormValueBean) {
        customFormValueBean.setEndTime(DateUtil.offsetDay(DateUtil.parseDateTime(customFormValueBean.getEndTime()),1).toString());
        return customFormValueBean;
    }

}
